# Maintainer: fauxpark <fauxpark@gmail.com>

_realname=dfu-util
pkgbase=mingw-w64-${_realname}
pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}
pkgver=0.9
pkgrel=1
pkgdesc='Device firmware upgrade utilities (mingw-w64)'
arch=('any')
license=('GPL2')
url='http://dfu-util.sourceforge.net/'
depends=("${MINGW_PACKAGE_PREFIX}-libusb")
source=("https://downloads.sourceforge.net/project/dfu-util/dfu-util-${pkgver}.tar.gz")
sha256sums=('36428c6a6cb3088cad5a3592933385253da5f29f2effa61518ee5991ea38f833')

build() {
    cd ${srcdir}/${_realname}-${pkgver}

    ./configure --prefix=${MINGW_PREFIX}
}

package() {
    cd ${srcdir}/${_realname}-${pkgver}

    make DESTDIR="$pkgdir" install
}
